package com.yangzc.lion.sys.organization.model;

import com.yangzc.lion.sys.organization.interfaces.ISysOrgPerson;


/**
 * 个人
 * 
 * @author 叶中奇
 */
public class SysOrgPerson extends SysOrgElement implements ISysOrgPerson {

	private static final long serialVersionUID = -4949547388592752921L;

	public SysOrgPerson() {
		super();
		setFdOrgType(new Integer(ORG_TYPE_PERSON));
	}

	public boolean isAnonymous() {
		if (fdLoginName == null)
			return false;
		return fdLoginName.equals("anonymous");
	}

	/*
	 * 手机号码
	 */
	private String fdMobileNo;

	public String getFdMobileNo() {
		return fdMobileNo;
	}

	public void setFdMobileNo(String fdMobileNo) {
		this.fdMobileNo = fdMobileNo;
	}

	/*
	 * 邮件地址
	 */
	private String fdEmail;

	public String getFdEmail() {
		return fdEmail;
	}

	public void setFdEmail(String fdEmail) {
		this.fdEmail = fdEmail;
	}

	/*
	 * 登录名
	 */
	private String fdLoginName;

	public String getFdLoginName() {
		return fdLoginName;
	}

	public void setFdLoginName(String fdLoginName) {
		this.fdLoginName = fdLoginName;
	}

	/*
	 * 密码
	 */
	private String fdPassword;

	public String getFdPassword() {
		return fdPassword;
	}

	public void setFdPassword(String fdPassword) {
		this.fdPassword = fdPassword;
	}

	/*
	 * 密码，仅页面展现用，不保存到数据库
	 */
	private String fdNewPassword;

	public String getFdNewPassword() {
		return fdNewPassword;
	}

	public void setFdNewPassword(String fdNewPassword) {
		this.fdNewPassword = fdNewPassword;
	}

	/*
	 * 初使密码用于OMS
	 */
	private String fdInitPassword;

	public String getFdInitPassword() {
		return fdInitPassword;
	}

	public void setFdInitPassword(String fdInitPassword) {
		this.fdInitPassword = fdInitPassword;
	}

	/*
	 * RTX帐号
	 */
	private String fdRtxNo;

	public String getFdRtxNo() {
		return fdRtxNo;
	}

	public void setFdRtxNo(String fdRtxNo) {
		this.fdRtxNo = fdRtxNo;
	}

	/*
	 * 动态密码卡号
	 */
	private String fdCardNo;

	public String getFdCardNo() {
		return fdCardNo;
	}

	public void setFdCardNo(String fdCardNo) {
		this.fdCardNo = fdCardNo;
	}

	/*
	 * 考勤卡号
	 */
	protected String fdAttendanceCardNumber;

	public String getFdAttendanceCardNumber() {
		return fdAttendanceCardNumber;
	}

	public void setFdAttendanceCardNumber(String fdAttendanceCardNumber) {
		this.fdAttendanceCardNumber = fdAttendanceCardNumber;
	}

	/*
	 * 办公电话
	 */
	protected String fdWorkPhone;

	public String getFdWorkPhone() {
		return fdWorkPhone;
	}

	public void setFdWorkPhone(String fdWorkPhone) {
		this.fdWorkPhone = fdWorkPhone;
	}

	/*
	 * 默认语言
	 */
	protected String fdDefaultLang;

	public String getFdDefaultLang() {
		return fdDefaultLang;
	}

	public void setFdDefaultLang(String fdDefaultLang) {
		this.fdDefaultLang = fdDefaultLang;
	}
}
